using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using amazingfishing;

namespace amazingfishing.sprites
{
    public class Hook:Sprite
    {
        public Hook()
            : base()
        {
        }

        public Hook(Texture2D _img, Vector2 _position, Point _frameSize, Point _sheetSize, int _timeperFrame)
            : base(_img, _position, _frameSize, _sheetSize, _timeperFrame)
        {
        }

        public bool checkClick(Vector2 position)
        {
            if (StaticFunctions.IsInRectangle(position, CollisionRect()))
            {
                return true;
            }
            else
                return false;
        }
    }
}
